/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.principles.ADP.fixADP.fixADP.impl3;
import za.ac.cput.principles.ADP.fixADP.fixADP.impl.Herbivore;
import za.ac.cput.principles.ADP.fixADP.fixADP.impl2.Animal;
/**
 *
 * @author Dwayne
 */
public class Omnivore 
{       
    public String eat() 
    {
        return "meat";
    }
    
    public boolean kill()
    {
        return true;        
    }
    
    public String name()
    {        
        Herbivore herObj2 = new Herbivore();
        String n = "worm";
        herObj2.setAnimal(n);
        String Nname = herObj2.getAnimal();
       
        if("worm".equals(Nname))
        {
            return "herbivore";
        }
        else
            return "omnivore";
    }
}
